qtbase-opensource-src.git
3 weeks agoMerge version 5.15.2+dfsg-9+rpi1+deb11u1 and 5.15.2+dfsg-9+deb11u2 to produce 5.15... bullseye-staging archive/raspbian/5.15.2+dfsg-9+rpi1+deb11u2 raspbian/5.15.2+dfsg-9+rpi1+deb11u2
Raspbian automatic forward porter [Thu, 8 Jan 2026 23:36:42 +0000 (23:36 +0000)]
Merge version 5.15.2+dfsg-9+rpi1+deb11u1 and 5.15.2+dfsg-9+deb11u2 to produce 5.15.2+dfsg-9+rpi1+deb11u2

2 months agoMerge qtbase-opensource-src (5.15.2+dfsg-9+deb11u2) import into refs/heads/workingbranch
Sylvain Beucler [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-9+deb11u2) import into refs/heads/workingbranch

2 months agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

2 months agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

2 months agoAvoid unconditional PATH_MAX usage
Pino Toscano [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

2 months agopass default include directories to qdoc
Martin Smith [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

2 months agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

2 months agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

2 months agocatch linker warnings in some config tests
Dmitry Shachnev [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

2 months agobuild ibase sql plugin against firebird
Fathi Boudra [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

2 months agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

2 months agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

2 months agoInitial GNU/kFreeBSD support
Pino Toscano [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

2 months agoCVE-2024-39936
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2024-39936

Origin: https://github.com/qt/qtbase/commit/bb1006b789f4ed0183b6ca668a45f75243879cb6
Reviewed-by: Sylvain Beucler <beuc@debian.org>
Last-Update: 2025-11-26

From bb1006b789f4ed0183b6ca668a45f75243879cb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= <marten.nordheim@qt.io>
Date: Tue, 25 Jun 2024 17:09:35 +0200
Subject: [PATCH] HTTP2: Delay any communication until encrypted() can be
 responded to

We have the encrypted() signal that lets users do extra checks on the
established connection. It is emitted as BlockingQueued, so the HTTP
thread stalls until it is done emitting. Users can potentially call
abort() on the QNetworkReply at that point, which is passed as a Queued
call back to the HTTP thread. That means that any currently queued
signal emission will be processed before the abort() call is processed.

In the case of HTTP2 it is a little special since it is multiplexed and
the code is built to start requests as they are available. This means
that, while the code worked fine for HTTP1, since one connection only
has one request, it is not working for HTTP2, since we try to send more
requests in-between the encrypted() signal and the abort() call.

This patch changes the code to delay any communication until the
encrypted() signal has been emitted and processed, for HTTP2 only.
It's done by adding a few booleans, both to know that we have to return
early and so we can keep track of what events arose and what we need to
resume once enough time has passed that any abort() call must have been
processed.

Conflict resolution: adapt to Qt 5 code supporting SPDY as well.

Fixes: QTBUG-126610
Pick-to: 5.12
Change-Id: Ic25a600c278203256e35f541026f34a8783235ae
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit b1e75376cc3adfc7da5502a277dfe9711f3e0536)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 0fb43e4395da34d561814242a0186999e4956e28)
(cherry picked from commit 2b1e36e183ce75c224305c7a94457b92f7a5cf58)
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 2b3048b35c4b37bfbfe38b8bde999715806bd7b8)
(cherry picked from commit db8bd4ea27e53753875ec71feed9c5b562b713eb)

Gbp-Pq: Name CVE-2024-39936.diff

2 months agoCVE-2024-39936-prereq
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2024-39936-prereq

Origin: https://github.com/qt/qtbase/commit/95064c35826793c5d6a4edff9fa08ad308b047bb
Reviewed-by: Sylvain Beucler <beuc@debian.org>
Last-Update: 2025-11-26

From 95064c35826793c5d6a4edff9fa08ad308b047bb Mon Sep 17 00:00:00 2001
From: Timur Pocheptsov <timur.pocheptsov@qt.io>
Date: Tue, 20 Jul 2021 08:16:28 +0200
Subject: [PATCH] H2: emit encrypted for at least the first reply, similar to
 H1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes: QTBUG-95277
Change-Id: I1fe01503376c0d6278e366d7bd31b412b7cc3a69
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit c23b7886348dc313ccec1a131850a7cce1b429de)

Gbp-Pq: Name CVE-2024-39936-prereq.diff

2 months agoQDnsLookup/Unix: make sure we don't overflow the buffer
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
QDnsLookup/Unix: make sure we don't overflow the buffer

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=7dba2c87619d558a
Last-Update: 2023-05-25

The DNS Records are variable length and encode their size in 16 bits
before the Record Data (RDATA). Ensure that both the RDATA and the
Record header fields before it fall inside the buffer we have.

Additionally reject any replies containing more than one query records.

Gbp-Pq: Name CVE-2023-33285.diff

2 months agoCVE-2023-34410
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2023-34410

===================================================================

Gbp-Pq: Name CVE-2023-34410.diff

2 months agoCVE-2023-38197
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2023-38197

===================================================================

Gbp-Pq: Name CVE-2023-38197.diff

2 months agoCVE-2023-37369
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2023-37369

===================================================================

Gbp-Pq: Name CVE-2023-37369.diff

2 months ago[PATCH] HPack: fix incorrect integer overflow check
Marc Mutz [Tue, 12 Dec 2023 21:08:07 +0000 (22:08 +0100)]
[PATCH] HPack: fix incorrect integer overflow check

This code never worked:

For the comparison with max() - 32 to trigger, on 32-bit platforms (or
Qt 5) signed interger overflow would have had to happen in the
addition of the two sizes. The compiler can therefore remove the
overflow check as dead code.

On Qt 6 and 64-bit platforms, the signed integer addition would be
very unlikely to overflow, but the following truncation to uint32
would yield the correct result only in a narrow 32-value window just
below UINT_MAX, if even that.

Fix by using the proper tool, qAddOverflow.

Manual conflict resolutions:
 - qAddOverflow doesn't exist in Qt 5, use private add_overflow
   predecessor API instead

Change-Id: I7599f2e75ff7f488077b0c60b81022591005661c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit ee5da1f2eaf8932aeca02ffea6e4c618585e29e3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit debeb8878da2dc706ead04b6072ecbe7e5313860)
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 811b9eef6d08d929af8708adbf2a5effb0eb62d7)
(cherry picked from commit f931facd077ce945f1e42eaa3bead208822d3e00)
(cherry picked from commit 9ef4ca5ecfed771dab890856130e93ef5ceabef5)
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Gbp-Pq: Name CVE-2023-51714.diff

2 months agoCVE-2023-32762
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2023-32762

commit 1b736a815be0222f4b24289cf17575fc15707305
Author: Mårten Nordheim <marten.nordheim@qt.io>
Date:   Fri May 5 11:07:26 2023 +0200

    Hsts: match header names case insensitively

    Header field names are always considered to be case-insensitive.

Pick-to: 6.5 6.5.1 6.2 5.15
Fixes: QTBUG-113392
    Change-Id: Ifb4def4bb7f2ac070416cdc76581a769f1e52b43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Gbp-Pq: Name CVE-2023-32762.diff

2 months agoSQL/ODBC: add another check to detect unicode availability in driver
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
SQL/ODBC: add another check to detect unicode availability in driver

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f19320748d282b1e
Last-Update: 2023-06-30

Since ODBC does not have a direct way finding out if unicode is
supported by the underlying driver the ODBC plugin does some checks. As
a last resort a sql statement is executed which returns a string. But
even this may fail because the select statement has no FROM part which
is rejected by at least Oracle does not allow. Therefore add another
query which is correct for Oracle & DB2 as a workaround. The question
why the first three statements to check for unicode availability fail
is still open but can't be checked since I've no access to an oracle
database.

Gbp-Pq: Name sql_odbc_more_unicode_checks.diff

2 months agoQSQL/ODBC: fix regression (trailing NUL)
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
QSQL/ODBC: fix regression (trailing NUL)

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9020034b3b6a3a81
Last-Update: 2023-06-30

When we fixed the callers of toSQLTCHAR() to use the result's size()
instead of the input's (which differ, if sizeof(SQLTCHAR) != 2), we
exposed callers to the append(0), which changes the size() of the
result QVLA. Callers that don't rely on NUL-termination (all?) now saw
an additional training NUL.

Fix by not NUL-terminating, and changing the only user of SQL_NTS to
use an explicit length.

Gbp-Pq: Name sql_odbc_fix_unicode_check.diff

2 months agoFix denial-of-service in Qt SQL ODBC driver plugin
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Fix denial-of-service in Qt SQL ODBC driver plugin

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2023-24607-qtbase-5.15.diff
Last-Update: 2023-02-26

Gbp-Pq: Name CVE-2023-24607.diff

2 months agoQProcess: ensure we don't accidentally execute something from CWD
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
QProcess: ensure we don't accidentally execute something from CWD

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2022-25255-qprocess5-15.diff
Last-Update: 2022-02-21

Unless "." (or the empty string) is in $PATH, we're not supposed to find
executables in the current directory. This is how the Unix shells behave
and we match their behavior. It's also the behavior Qt had prior to 5.9
(commit 28666d167aa8e602c0bea25ebc4d51b55005db13). On Windows, searching
the current directory is the norm, so we keep that behavior.

This commit does not add an explicit check for an empty return from
QStandardPaths::findExecutable(). Instead, we allow that empty string to
go all the way to execve(2), which will fail with ENOENT. We could catch
it early, before fork(2), but why add code for the error case?

See https://kde.org/info/security/advisory-20220131-1.txt

Gbp-Pq: Name CVE-2022-25255.diff

2 months agofix buffer overflow in Qt SVG
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
fix buffer overflow in Qt SVG

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2023-32763-qtbase-5.15.diff
Last-Update: 2023-05-22

Adds qAddOverflow and qMulOverflow definitions to QFixed.

Gbp-Pq: Name CVE-2023-32763.diff

2 months agoCVE-2024-25580
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
CVE-2024-25580

Gbp-Pq: Name CVE-2024-25580.diff

2 months ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

2 months agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

2 months agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

2 months agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

2 months agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

2 months agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

2 months agoqtbase-opensource-src (5.15.2+dfsg-9+deb11u2) bullseye-security; urgency=high
Sylvain Beucler [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
qtbase-opensource-src (5.15.2+dfsg-9+deb11u2) bullseye-security; urgency=high

  * Non-maintainer upload by the LTS Security Team.
  * CVE-2024-39936: issue in HTTP2. Code to make security-relevant
    decisions about an established connection may execute too early,
    because the encrypted() signal has not yet been emitted and
    processed.
  * Add Salsa-CI configuration
  * Add git-buildpackage configuration
  * Add lintian overrides for test binary data

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-9+deb11u2]

2 months agoImport qtbase-opensource-src_5.15.2+dfsg-9+deb11u2.debian.tar.xz
Sylvain Beucler [Thu, 27 Nov 2025 14:54:31 +0000 (15:54 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-9+deb11u2.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-9+deb11u2 qtbase-opensource-src_5.15.2+dfsg-9+deb11u2.debian.tar.xz]

19 months agoMerge version 5.15.2+dfsg-9+rpi1 and 5.15.2+dfsg-9+deb11u1 to produce 5.15.2+dfsg... archive/raspbian/5.15.2+dfsg-9+rpi1+deb11u1 raspbian/5.15.2+dfsg-9+rpi1+deb11u1
Raspbian automatic forward porter [Sun, 30 Jun 2024 13:09:59 +0000 (14:09 +0100)]
Merge version 5.15.2+dfsg-9+rpi1 and 5.15.2+dfsg-9+deb11u1 to produce 5.15.2+dfsg-9+rpi1+deb11u1

21 months agoMerge qtbase-opensource-src (5.15.2+dfsg-9+deb11u1) import into refs/heads/workingbranch
Thorsten Alteholz [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Merge qtbase-opensource-src (5.15.2+dfsg-9+deb11u1) import into refs/heads/workingbranch

21 months agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

21 months agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

21 months agoAvoid unconditional PATH_MAX usage
Pino Toscano [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

21 months agopass default include directories to qdoc
Martin Smith [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

21 months agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

21 months agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

21 months agocatch linker warnings in some config tests
Dmitry Shachnev [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

21 months agobuild ibase sql plugin against firebird
Fathi Boudra [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

21 months agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

21 months agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

21 months agoInitial GNU/kFreeBSD support
Pino Toscano [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

21 months agoQDnsLookup/Unix: make sure we don't overflow the buffer
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
QDnsLookup/Unix: make sure we don't overflow the buffer

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=7dba2c87619d558a
Last-Update: 2023-05-25

The DNS Records are variable length and encode their size in 16 bits
before the Record Data (RDATA). Ensure that both the RDATA and the
Record header fields before it fall inside the buffer we have.

Additionally reject any replies containing more than one query records.

Gbp-Pq: Name CVE-2023-33285.diff

21 months agoCVE-2023-34410
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
CVE-2023-34410

===================================================================

Gbp-Pq: Name CVE-2023-34410.diff

21 months agoCVE-2023-38197
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
CVE-2023-38197

===================================================================

Gbp-Pq: Name CVE-2023-38197.diff

21 months agoCVE-2023-37369
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
CVE-2023-37369

===================================================================

Gbp-Pq: Name CVE-2023-37369.diff

21 months ago[PATCH] HPack: fix incorrect integer overflow check
Marc Mutz [Tue, 12 Dec 2023 21:08:07 +0000 (22:08 +0100)]
[PATCH] HPack: fix incorrect integer overflow check

This code never worked:

For the comparison with max() - 32 to trigger, on 32-bit platforms (or
Qt 5) signed interger overflow would have had to happen in the
addition of the two sizes. The compiler can therefore remove the
overflow check as dead code.

On Qt 6 and 64-bit platforms, the signed integer addition would be
very unlikely to overflow, but the following truncation to uint32
would yield the correct result only in a narrow 32-value window just
below UINT_MAX, if even that.

Fix by using the proper tool, qAddOverflow.

Manual conflict resolutions:
 - qAddOverflow doesn't exist in Qt 5, use private add_overflow
   predecessor API instead

Change-Id: I7599f2e75ff7f488077b0c60b81022591005661c
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit ee5da1f2eaf8932aeca02ffea6e4c618585e29e3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit debeb8878da2dc706ead04b6072ecbe7e5313860)
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 811b9eef6d08d929af8708adbf2a5effb0eb62d7)
(cherry picked from commit f931facd077ce945f1e42eaa3bead208822d3e00)
(cherry picked from commit 9ef4ca5ecfed771dab890856130e93ef5ceabef5)
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Gbp-Pq: Name CVE-2023-51714.diff

21 months agoCVE-2023-32762
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
CVE-2023-32762

commit 1b736a815be0222f4b24289cf17575fc15707305
Author: Mårten Nordheim <marten.nordheim@qt.io>
Date:   Fri May 5 11:07:26 2023 +0200

    Hsts: match header names case insensitively

    Header field names are always considered to be case-insensitive.

Pick-to: 6.5 6.5.1 6.2 5.15
Fixes: QTBUG-113392
    Change-Id: Ifb4def4bb7f2ac070416cdc76581a769f1e52b43
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Gbp-Pq: Name CVE-2023-32762.diff

21 months agoSQL/ODBC: add another check to detect unicode availability in driver
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
SQL/ODBC: add another check to detect unicode availability in driver

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=f19320748d282b1e
Last-Update: 2023-06-30

Since ODBC does not have a direct way finding out if unicode is
supported by the underlying driver the ODBC plugin does some checks. As
a last resort a sql statement is executed which returns a string. But
even this may fail because the select statement has no FROM part which
is rejected by at least Oracle does not allow. Therefore add another
query which is correct for Oracle & DB2 as a workaround. The question
why the first three statements to check for unicode availability fail
is still open but can't be checked since I've no access to an oracle
database.

Gbp-Pq: Name sql_odbc_more_unicode_checks.diff

21 months agoQSQL/ODBC: fix regression (trailing NUL)
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
QSQL/ODBC: fix regression (trailing NUL)

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9020034b3b6a3a81
Last-Update: 2023-06-30

When we fixed the callers of toSQLTCHAR() to use the result's size()
instead of the input's (which differ, if sizeof(SQLTCHAR) != 2), we
exposed callers to the append(0), which changes the size() of the
result QVLA. Callers that don't rely on NUL-termination (all?) now saw
an additional training NUL.

Fix by not NUL-terminating, and changing the only user of SQL_NTS to
use an explicit length.

Gbp-Pq: Name sql_odbc_fix_unicode_check.diff

21 months agoFix denial-of-service in Qt SQL ODBC driver plugin
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Fix denial-of-service in Qt SQL ODBC driver plugin

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2023-24607-qtbase-5.15.diff
Last-Update: 2023-02-26

Gbp-Pq: Name CVE-2023-24607.diff

21 months agoQProcess: ensure we don't accidentally execute something from CWD
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
QProcess: ensure we don't accidentally execute something from CWD

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2022-25255-qprocess5-15.diff
Last-Update: 2022-02-21

Unless "." (or the empty string) is in $PATH, we're not supposed to find
executables in the current directory. This is how the Unix shells behave
and we match their behavior. It's also the behavior Qt had prior to 5.9
(commit 28666d167aa8e602c0bea25ebc4d51b55005db13). On Windows, searching
the current directory is the norm, so we keep that behavior.

This commit does not add an explicit check for an empty return from
QStandardPaths::findExecutable(). Instead, we allow that empty string to
go all the way to execve(2), which will fail with ENOENT. We could catch
it early, before fork(2), but why add code for the error case?

See https://kde.org/info/security/advisory-20220131-1.txt

Gbp-Pq: Name CVE-2022-25255.diff

21 months agofix buffer overflow in Qt SVG
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
fix buffer overflow in Qt SVG

Origin: upstream, https://download.qt.io/official_releases/qt/5.15/CVE-2023-32763-qtbase-5.15.diff
Last-Update: 2023-05-22

Adds qAddOverflow and qMulOverflow definitions to QFixed.

Gbp-Pq: Name CVE-2023-32763.diff

21 months agoCVE-2024-25580
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
CVE-2024-25580

Gbp-Pq: Name CVE-2024-25580.diff

21 months ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

21 months agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

21 months agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

21 months agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

21 months agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

21 months agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

21 months agoqtbase-opensource-src (5.15.2+dfsg-9+deb11u1) bullseye; urgency=medium
Thorsten Alteholz [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
qtbase-opensource-src (5.15.2+dfsg-9+deb11u1) bullseye; urgency=medium

  * Non-maintainer upload by the LTS Team.
  * CVE-2024-25580 (Closes: #1064053)
    fix buffer overflow due to crafted KTX image file
  * CVE-2023-32763 (Closes: #1036702)
    fix QTextLayout buffer overflow due to crafted SVG file
  * CVE-2022-25255
    prevent QProcess from execution of a binary from the current working
    directory when not found in the PATH
  * CVE-2023-24607 (Closes: #1031872)
    fix denial of service via a crafted string when the SQL ODBC driver
    plugin is used
  * fix regression caused by patch for CVE-2023-24607
  * CVE-2023-32762
    prevent incorrect parsing of the strict-transport-security (HSTS) header
  * CVE-2023-51714 (Closes: #1060694)
    fix incorrect HPack integer overflow check.
  * CVE-2023-38197 (Closes: #1041105)
    fix infinite loop in recursive entity expansion
  * CVE-2023-37369 (Closes: #1059302)
    fix crash of application in QXmlStreamReader due to crafted XML string
  * CVE-2023-34410 (Closes: #1037210)
    fix checking during TLS whether root of the chain really is a
    configured CA certificate
  * CVE-2023-33285 (Closes: #1036848)
    fix buffer overflow in QDnsLookup

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-9+deb11u1]

21 months agoImport qtbase-opensource-src_5.15.2+dfsg-9+deb11u1.debian.tar.xz
Thorsten Alteholz [Sun, 28 Apr 2024 20:48:02 +0000 (22:48 +0200)]
Import qtbase-opensource-src_5.15.2+dfsg-9+deb11u1.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-9+deb11u1 qtbase-opensource-src_5.15.2+dfsg-9+deb11u1.debian.tar.xz]

4 years agoMerge version 5.15.2+dfsg-7+rpi1 and 5.15.2+dfsg-9 to produce 5.15.2+dfsg-9+rpi1 archive/raspbian/5.15.2+dfsg-9+rpi1 raspbian/5.15.2+dfsg-9+rpi1
Raspbian automatic forward porter [Thu, 15 Jul 2021 22:18:33 +0000 (23:18 +0100)]
Merge version 5.15.2+dfsg-7+rpi1 and 5.15.2+dfsg-9 to produce 5.15.2+dfsg-9+rpi1

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-9) import into refs/heads/workingbranch
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-9) import into refs/heads/workingbranch

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

4 years agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

4 years agoInitial GNU/kFreeBSD support
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

4 years ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

4 years agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

4 years agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

4 years agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

4 years agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

4 years agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

4 years agoqtbase-opensource-src (5.15.2+dfsg-9) unstable; urgency=medium
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
qtbase-opensource-src (5.15.2+dfsg-9) unstable; urgency=medium

  * Revert adding fix-misplacement-of-placeholder-text-in-QLineEdit.diff.
    Unfortunately it causes a regression (see QTBUG-94824).

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-9]

4 years agoImport qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-9 qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz]

4 years agoMerge version 5.15.2+dfsg-5+rpi1 and 5.15.2+dfsg-7 to produce 5.15.2+dfsg-7+rpi1 archive/raspbian/5.15.2+dfsg-7+rpi1 raspbian/5.15.2+dfsg-7+rpi1
Raspbian automatic forward porter [Thu, 10 Jun 2021 16:53:19 +0000 (17:53 +0100)]
Merge version 5.15.2+dfsg-5+rpi1 and 5.15.2+dfsg-7 to produce 5.15.2+dfsg-7+rpi1

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-7) import into refs/heads/workingbranch
Lisandro Damián Nicanor Pérez Meyer [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-7) import into refs/heads/workingbranch

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff